<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>EHS中国信息管理系统</title>
    <script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
    <script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
    <script type="text/javascript" src="__TMPL__/Js/_doc.js"></script>
	<style>
	  table{border-collapse:collapse;border:none;line-height:16px;border:1px solid #ccc}
	  body{font-size:14px;}
	  optgroup{color:#999999}
	  optgroup option{color:#0066CC}
	</style>
  </head>
  <body>
    <script>
      var url = "__URL__";
      var lids = [];//lids-选择的记录id数组，用来删除/修改；
      var defaultIDS = [];//
    </script>
    <div style="margin:0 auto; text-align:center; padding:10px;">
      <div style="padding:2px;">
        <layout name="Public:doc-header" cache="0" />
        <div style="width:80%; float:left;">
          <div>
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,1)">全选</a>|
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,2)">不选</a>|
            <a href="javascript:void(0)" onclick="clickLnkSelect(this,3)">反选</a>|
            行业：<select id="selHY" style="width:200px">
              <option value="0">全部</option>
              <volist name="hz[0]" id="h">
              <optgroup label="{$h.title}">
                <volist name="h.downLine" id="hd">
                <option value="{$hd.id}">{$hd.title}</option>
                </volist>
               </optgroup>
              </volist>
            </select>
            专业：<select id="selZY" style="width:200px">
              <option value="0">全部</option>
              <volist name="hz[1]" id="h">
                <volist name="h.downLine" id="hd">
				<optgroup value="{$hd.id}" style="color:#999999;font-style:normal" label="{$h.title}:{$hd.title}">
				   <volist name="hd.downLine" id="d">
				   <option value="{$d.id}" style="color:#0066CC">{$d.title}({$d.id})</option>
				   </volist>
				</optgroup>
				</volist>
              </volist>
            </select>
            <!--<input type="button" value="录入" onclick="insertRecords()"/>-->&nbsp;
          </div>
          <table  align="center" cellpadding="0" cellspacing="1" width="100%">
            <tr><td></td><td>序号</td><td>标题</td><td>文件路径</td><td>行业</td><td>专业</td><td>应用</td><td>是否审核</td><td>是否生成Flash</td><td>操作</td></tr>
            <volist name="info" id="l">
              <tr>
                <td><input type="checkbox" onclick="checkRecord(this)" record_id="{$l.id}"/></td>
                <td>{$i}</td><td><a href="/main/public.php?s=/doc/docview/id/{$l.id}" target="_blank">{$l.title}</a></td><td>{$l.file_url}</td><td>{$l.hy_title}</td><td>{$l.zy_title}</td>
                <td>{$l.type_name}</td><td><if condition="$l.ischeck eq 1">是<else/>否</if></td><td><if condition="$l.isswf eq 1">是<else/>否</if></td>
                <td><a href="__URL__/edit/id/{$l.id}/bakURL/{$selfURL}">编辑</td>
                </tr>
            </volist>
          </table>
          <div>{$page}</div>
        </div>
      </div>
      {/*<layout name="Public:doc-footer" cache="0" /> */}
    </div>
	<script>
	  $("tr:odd").css("background-color","#eee"); 
	</script>
  </body>
</html>
